package com.launcher.decorator;

import javax.persistence.Entity;

import com.launcher.Rocket;


@Entity
public class Stage extends RocketDecorator implements IStage
{
	private int height = 0;
	
	public Stage(Rocket decoratedRocket)
	{
		super(decoratedRocket);
	}
	
	public Stage()
	{
		super(null);
	}
	
	public void setHeight(int height)
	{
		this.height = height;
	}
	
	public int getHeight()
	{
        return height;
    }
	
	public Stage clone()
	{
		Stage stage = new Stage(null);
		stage.setCost(getCost());
		stage.setMass(getMass());
		stage.setHeight(getHeight());
		
		return stage;
	}
}
